print("Example script dz_zhandou.lua.");
---------------------------
local scheme = ut.newSpellQueue()

local cisha = LoadScript("dz_cisha.lua")

scheme.add('切割', nil, function( )
    return getBuffRemianTime('player', '切割') < 4
end)

scheme.add('穿刺', nil, function( )
    return getComboPoints() == MaxComboPoints()
end)


scheme.add('鬼魅攻击', 'target', function()
     return getDebuffRemainTime( 'target', '鬼魅攻击' ) < 1 
end)


scheme.add('手枪射击', nil, function( )
   	return UnitBuff('player', '可乘之机') 
end)

scheme.add('军刀猛刺', 'target')

-------------------------------------------------------------------------------


registerEvent('PLAYER_LEAVE_COMBAT', function( ... )
    -- print('PLAYER_LEAVE_COMBAT')
    -- s.weakStop()
end)

registerEvent('PLAYER_ENTER_COMBAT', function( ... )
    -- print('PLAYER_ENTER_COMBAT')
end)

-- registerEvent('UNIT_TARGET', function( ... )
    -- print(...)
-- end)

scheme.touxi = cisha.touxi
scheme.touxiOther = cisha.touxiOther
scheme.zaoji = cisha.zaoji
scheme.shenji = cisha.shenji
scheme.tianjiangshaji = cisha.tianjiangshaji
-- scheme.mengun = cisha.mengun
scheme.yanggong = cisha.yanggong
scheme.zhimang = cisha.zhimang
scheme.daduan = cisha.daduan
scheme.isMorph = cisha.isMorph
scheme.morph = cisha.morph
scheme.zhuazei = cisha.zhuazei
return scheme

